Matthias Clasen [Mon, 30 Jun 2014 19:45:17 +0000 (15:45 -0400)]
Treat unthemed icons the same as force_size for scaling
This is closer to what we were doing in the past.
Matthias Clasen [Mon, 30 Jun 2014 17:28:46 +0000 (13:28 -0400)]
gtk-demo: Only show non-symbolic icons in toolpalette
Otherwise, we get every icon twice. To switch between symbolic
and non-symbolic icons, this css fragment comes in handy:
* { -gtk-icon-style: symbolic; }
Matthias Clasen [Mon, 30 Jun 2014 17:24:28 +0000 (13:24 -0400)]
widget-factory: Use a standard icon name
Using edit-find instead of search has the advantage that there
is a symbolic variant of the icon.
Matthias Clasen [Mon, 30 Jun 2014 15:35:38 +0000 (11:35 -0400)]
Adwaita: Make selectable labels work
This brings back white-on-blue selection in selectable labels.
https://bugzilla.gnome.org/show_bug.cgi?id=732441
Chun-wei Fan [Mon, 30 Jun 2014 10:00:26 +0000 (18:00 +0800)]
build/win32/vs10/gtk.vcxprojin: Remove References to gtka11y
...so that Visual Studio will not warn about a reference that no longer
exists.
Jasper St. Pierre [Mon, 30 Jun 2014 00:54:39 +0000 (20:54 -0400)]
gtkcellrendereraccel: Use a GtkInvisible to grab on
Grabbing on a non-toplevel might not do what we want it to do, since it
will go on the focused widget, not the grabbed widget. Since we don't
focus the widget before clicking on it, that means that putting the
focus somewhere else and then clicking on the accelerator editor will
freeze the app. Additionally, since it's a global system grab that can't
be exited except by a key press that we won't ever get, it effectively
locks up your system as well unless you know how to break the grab or
kill the app. Ouch.
Since doing a device grab on a non-toplevel is generally considered a
bad idea, just don't do it. Use a GtkInvisible and take a grab on that
instead.
Jasper St. Pierre [Sun, 29 Jun 2014 23:49:49 +0000 (19:49 -0400)]
gdkwindow: Fix an accidental code out-of-ordering
There's no semantics change, it just makes things clearer.
Matthias Clasen [Sun, 29 Jun 2014 23:33:46 +0000 (19:33 -0400)]
GtkStyleContext: Avoid over-eager animation cancellation
When validating the style context, we are copying the animations
from one StyleValues instance to another, and cancel the old ones.
It turns out that sometimes the old and the new StyleValues are
the same, and in this case, we end up cancelling the animations
for good.
One case where breakage from this was observed is that the spinners
in gtk3-widget-factory stop spinning when you open and close a modal
dialog on page 2. This depends a bit on the window manager; the problem
can only be seen if opening the dialog causes a transition to backdrop.
Jasper St. Pierre [Sun, 29 Jun 2014 22:53:25 +0000 (18:53 -0400)]
gtkmain: One more combine
Jasper St. Pierre [Sun, 29 Jun 2014 22:52:50 +0000 (18:52 -0400)]
gtkmain: Combine two switch cases that are the same
Jasper St. Pierre [Sun, 29 Jun 2014 22:35:31 +0000 (18:35 -0400)]
gtkswitch: Fix docs
Jasper St. Pierre [Sun, 29 Jun 2014 22:05:49 +0000 (18:05 -0400)]
gtkcellarea: Fix docs
Jasper St. Pierre [Sun, 29 Jun 2014 21:59:38 +0000 (17:59 -0400)]
gdkdevicemanager-xi2: Add debug output for key events
Jasper St. Pierre [Sun, 29 Jun 2014 21:58:56 +0000 (17:58 -0400)]
gdkdevicemanager-xi2: Fix debug outputs for button events
We had the arguments in the wrong order here.
Benjamin Otte [Sun, 29 Jun 2014 17:52:37 +0000 (19:52 +0200)]
tests: Remove tests for icontheme properties
These properties have been removed and always return %NULL, so no need
to keep them.
Matthias Clasen [Sun, 29 Jun 2014 18:03:14 +0000 (14:03 -0400)]
testdialog: Add a spinner
Trying to track down a problem where animation stops when a modal
dialog is opened and closed.
Matthias Clasen [Sun, 29 Jun 2014 03:27:36 +0000 (23:27 -0400)]
widget-factory: Plug a memory leak
Matthias Clasen [Sun, 29 Jun 2014 03:19:09 +0000 (23:19 -0400)]
GtkBuilder: Fix more GMenu leaks in the parser
Matthias Clasen [Sun, 29 Jun 2014 02:39:43 +0000 (22:39 -0400)]
GtkMenuTrackerItem: Plug a memory leak
gtk_menu_tracker_get_[verb_]icon both return a reference,
so don't use g_value_set_object, which adds another one.
Matthias Clasen [Sun, 29 Jun 2014 02:39:02 +0000 (22:39 -0400)]
GtkCssImageIconName: Plug a memory leak
valgrind was complaining that we're not freeing the icon_name.
Matthias Clasen [Sun, 29 Jun 2014 02:38:13 +0000 (22:38 -0400)]
GtkColorEditor: Initialize the allocation x/y
Matthias Clasen [Sun, 29 Jun 2014 02:37:14 +0000 (22:37 -0400)]
GtkActionMuxer: Plug a memory leak
valgrind complained that we leak the primary_accels table.
Matthias Clasen [Sun, 29 Jun 2014 02:29:57 +0000 (22:29 -0400)]
Revert "scrolledwindow: fix scrolling with shared adjustment"
This reverts commit
f0478c3dfdb14c7ad474ed1d2ac989f8e4ecf3c8.
Didn't mean to push this.
Matthias Clasen [Sun, 29 Jun 2014 01:38:47 +0000 (21:38 -0400)]
GtkFileChooserWidget: Remove an errant line
This was leaking a schema object, and looks like a bad merge.
Matthias Clasen [Sun, 29 Jun 2014 00:21:32 +0000 (20:21 -0400)]
GtkBuilder: Don't leak a reference to constructed GMenus
_gtk_builder_add_object adds a reference, so we need to drop
our initial one.
Matthias Clasen [Sun, 29 Jun 2014 00:15:12 +0000 (20:15 -0400)]
GtkGesture: Don't leak the group link
Found in a valgrind log.
Matthias Clasen [Sat, 28 Jun 2014 20:22:43 +0000 (16:22 -0400)]
widget-factory: Small cleanup
Use gtk_builder_new_from_resource and get rid of an unneeded GError.
Matthias Clasen [Sat, 28 Jun 2014 20:19:33 +0000 (16:19 -0400)]
widget-factory: Make the entry progress stop as well
Matthias Clasen [Sat, 28 Jun 2014 19:51:33 +0000 (15:51 -0400)]
GtkEntry: Make progress pulsing smooth
This changes the calculation of activity mode progress in the
same way as was done in GtkProgressBar a while ago, and make it
smooth, using a tick callback.
Matthias Clasen [Sat, 28 Jun 2014 19:23:29 +0000 (15:23 -0400)]
widget-factory: Make the entry progress variable too
Make the scale that currently controls the speed of the progressbar
control the progress speed in the entry as well.
Stefan Sauer [Sun, 25 May 2014 19:35:14 +0000 (21:35 +0200)]
scrolledwindow: fix scrolling with shared adjustment
The GtkPolicyType set on the scrollbar is just about the presentation. What
matters for scrolling is the adjustment.
https://bugzilla.gnome.org/show_bug.cgi?id=730730
Matthias Clasen [Sat, 28 Jun 2014 15:37:29 +0000 (11:37 -0400)]
widget-factory: Add an icon view
We didn't have one before, and this gives us a chance to show off
rubberbanding and symbolic icon rendering.
Matthias Clasen [Sat, 28 Jun 2014 15:13:17 +0000 (11:13 -0400)]
Disable deprecation warnings for installed reftests
Otherwise, these fail in continuous.
Matthias Clasen [Sat, 28 Jun 2014 15:12:23 +0000 (11:12 -0400)]
widget-factory: Enable alpha in the color button
This lets us verify that the theme treats the alpha scale fairly.
Matthias Clasen [Sat, 28 Jun 2014 14:59:41 +0000 (10:59 -0400)]
notification test: Always disable runtime deprecation warnings
These are just not useful in a test that generically deals with
all properties.
Matthias Clasen [Sat, 28 Jun 2014 14:58:24 +0000 (10:58 -0400)]
Exclude GtkToggleButton::draw-indicator from the notification test
We reverted to emitting redundant notifications for this, so
don't assert that we don't.
Matthias Clasen [Sat, 28 Jun 2014 14:56:54 +0000 (10:56 -0400)]
GtkButton: warn slightly less
Use gtk_misc_set_alignment when setting x/align on button children
where possible, to avoid the runtime warning that g_object_set
incurs nowadays.
Lapo Calamandrei [Sat, 28 Jun 2014 13:22:23 +0000 (15:22 +0200)]
Adwaita: minor code refactoring
Lapo Calamandrei [Sat, 28 Jun 2014 13:05:06 +0000 (15:05 +0200)]
Adwaita: button work
- finally fixed +|- buttons on inline toolbars
- commented out :focus and :selected for normal buttons since it makes
flat buttons background blue...
Bastien Nocera [Fri, 27 Jun 2014 10:52:34 +0000 (12:52 +0200)]
docs: Sort GDK_DEBUG values alphabetically
https://bugzilla.gnome.org/show_bug.cgi?id=732330
Bastien Nocera [Fri, 27 Jun 2014 10:46:34 +0000 (12:46 +0200)]
docs: Sort GDK_DEBUG values alphabetically
https://bugzilla.gnome.org/show_bug.cgi?id=732330
Matthias Clasen [Sat, 28 Jun 2014 05:51:24 +0000 (01:51 -0400)]
Avoid a redundant strlen
The GString knows perfectly well how long it is. Pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=731158
Matthias Clasen [Sat, 28 Jun 2014 05:34:25 +0000 (01:34 -0400)]
Adwaita: Neuter frames in statusbars
Too much.
Matthias Clasen [Sat, 28 Jun 2014 04:41:26 +0000 (00:41 -0400)]
Fight deprecation warnings in test
This time, in installed tests.
Saurabh [Fri, 27 Jun 2014 16:41:09 +0000 (22:11 +0530)]
Adding 'no-matches' signal support to gtkentrycompletion
Add a new 'no-matches' signal and add a function pointer to gtkentrycompletionclass
and remove one from the padding at the end.
https://bugzilla.gnome.org/show_bug.cgi?id=726566
William Jon McCann [Fri, 18 Jan 2013 21:50:47 +0000 (16:50 -0500)]
Allow activating an item after single click on a different item
We were ignoring double click events when a different item was
previously selected.
https://bugzilla.gnome.org/show_bug.cgi?id=484640
Matthias Clasen [Sat, 28 Jun 2014 04:20:19 +0000 (00:20 -0400)]
GtkPrintUnixDialog: Set a higher limit for the number of copies
As requested in bug 672676.
Emilio Pozuelo Monfort [Mon, 23 Jun 2014 16:21:08 +0000 (18:21 +0200)]
wayland: don't change the cursor if there is no pointer
https://bugzilla.gnome.org/show_bug.cgi?id=732206
Jasper St. Pierre [Thu, 26 Jun 2014 18:16:26 +0000 (14:16 -0400)]
colorplane: Don't connect to the configure-event signal
We want to stop people from using configure events
entirely. GtkDrawingArea synthesizes a configure event, but we can just
make the only user of this functionality stop it, and correct the
documentation to not mention it.
Matthias Clasen [Sat, 28 Jun 2014 04:00:16 +0000 (00:00 -0400)]
Improve popover menu spacing
Make iconic buttons have a more reasonable height, and add some
space above an iconic row.
https://bugzilla.gnome.org/show_bug.cgi?id=732229
Matthias Clasen [Sat, 28 Jun 2014 03:53:03 +0000 (23:53 -0400)]
Fix a documentation copy-paste error
The color chooser doesn't deal with fonts.
Matthias Clasen [Sat, 28 Jun 2014 02:03:11 +0000 (22:03 -0400)]
Revert "colorplane: Don't connect to the configure-event signal"
This reverts commit
886f58e1cf2b4918ae33dc2b6279fd7e61c56827.
This made the color plane go missing.
Matthias Clasen [Sat, 28 Jun 2014 01:57:25 +0000 (21:57 -0400)]
GtkMessageDialog: Don't set x/yalign explicitly
The h/valign work fine to give us what we need here, so we
can avoid the runtime deprecation warnings for deprecated
properties.
Matthias Clasen [Sat, 28 Jun 2014 01:44:40 +0000 (21:44 -0400)]
widget-factory: Stop using GtkImageMenuItem
A plain GtkMenuItem works just fine here.
Matthias Clasen [Sat, 28 Jun 2014 01:43:04 +0000 (21:43 -0400)]
widget-factory: Stop using the deprecated GtkAlignment::left-padding
These alignments can just be dropped without loss.
Matthias Clasen [Sat, 28 Jun 2014 01:40:50 +0000 (21:40 -0400)]
widget-factory: Don't use deprecated GtkColorButton::color
Instead, simply set the rgba property, which accepts the
same value.
Matthias Clasen [Sat, 28 Jun 2014 01:35:49 +0000 (21:35 -0400)]
widget-factory: Drop redundant defaults from the .ui file
In particular, we drop xalign, since it is deprecated.
Matthias Clasen [Sat, 28 Jun 2014 01:29:18 +0000 (21:29 -0400)]
GtkSettings: defensive defaults
Change the default value of the gtk-decoration-layout setting
to menu:minimize,maximize,close. The masses want it that way.
Matthias Clasen [Sat, 28 Jun 2014 01:22:40 +0000 (21:22 -0400)]
Bring back redundant notifications for GtkToggleButton::draw-indicator
GtkCheckButton sets a different initial value for this property without
actually changing the declared default, and then relies on change notification
to update other properties (such as xalign). This, combined with glades
insistance on putting default values into ui files creates a situation
where we can't remove the redundant notification for ::draw-indicator
without causing lots of checkboxes to suddenly have centered labels.
This was seen in gnome-terminal, evolution, and other applications.
Therefore, keep the extra notification for now. This can be revisited
when we clean up the button hierarchy.
Matthias Clasen [Fri, 27 Jun 2014 22:43:59 +0000 (18:43 -0400)]
inspector: Chain up in constructed
Its the right thing to do.
Lapo Calamandrei [Fri, 27 Jun 2014 14:23:12 +0000 (16:23 +0200)]
Adwaita: export the right color for the wm hilight dark var
Jasper St. Pierre [Thu, 26 Jun 2014 23:47:39 +0000 (19:47 -0400)]
gtkwindow: Refactor out some similar code for grips
Jasper St. Pierre [Thu, 26 Jun 2014 23:45:55 +0000 (19:45 -0400)]
gtkwindow: Merge some similar code
Jasper St. Pierre [Thu, 26 Jun 2014 23:43:28 +0000 (19:43 -0400)]
gtkwindow: Remove a dead chain-up
GtkWidget / GtkBin don't have configure-event handlers, so we don't need
to attempt to chain up to them.
Lapo Calamandrei [Fri, 27 Jun 2014 12:53:31 +0000 (14:53 +0200)]
Adwaita: remove borders from flat frames
Lapo Calamandrei [Fri, 27 Jun 2014 12:47:29 +0000 (14:47 +0200)]
Adwaita: remove borders from scrollbars junction
Lapo Calamandrei [Fri, 27 Jun 2014 12:24:53 +0000 (14:24 +0200)]
Adwaita: initial flat entry styling.
Lapo Calamandrei [Fri, 27 Jun 2014 11:15:54 +0000 (13:15 +0200)]
Adwaita: .flat button styling
Matthias Clasen [Thu, 26 Jun 2014 03:17:26 +0000 (23:17 -0400)]
GtkFrame: Use style classes for shadow
Use the FLAT style class when shadow is set to none, and
let the theme render the appropriate border.
https://bugzilla.gnome.org/show_bug.cgi?id=732256
Matthias Clasen [Thu, 26 Jun 2014 02:08:27 +0000 (22:08 -0400)]
GtkEntry: Make has-frame use style classes
Instead of code that internally does weird things, use the FLAT style
class if has-frame is FALSE and remove it otherwise.
Based on a patch by Benjamin Otte.
https://bugzilla.gnome.org/show_bug.cgi?id=732256
fixup entry
Matthias Clasen [Fri, 27 Jun 2014 01:59:06 +0000 (21:59 -0400)]
GtkButton: Use FLAT style class
This commit makes button always draw background and frame.
Buttons with relief none get a new style class, FLAT, which
allows themes to style these buttons as they like.
We also (finally) mark GTK_RELIEF_HALF as deprecated. It
has never done anything different from GTK_RELIEF_NORMAL.
https://bugzilla.gnome.org/show_bug.cgi?id=732256
Matthias Clasen [Fri, 27 Jun 2014 02:00:29 +0000 (22:00 -0400)]
Add a FLAT style class
This will be used for frame-less buttons and frames in the future.
Matthias Clasen [Thu, 26 Jun 2014 03:43:35 +0000 (23:43 -0400)]
GtkScrolledWindow: Use style classes for shadow
Translate shadow != None into the FRAME style class.
This doesn't change the style classes used for drawing,
it only sets the style class permanently instead of
saving and restoring in draw().
https://bugzilla.gnome.org/show_bug.cgi?id=732256
Matthias Clasen [Thu, 26 Jun 2014 03:42:47 +0000 (23:42 -0400)]
GtkViewport: Use style classes for shadow
Translate shadow != None into the FRAME style class.
This doesn't change the style classes used for drawing,
it only sets the style class permanently instead of
saving and restoring in draw().
https://bugzilla.gnome.org/show_bug.cgi?id=732256
Jasper St. Pierre [Thu, 26 Jun 2014 22:22:42 +0000 (18:22 -0400)]
gtk: Don't use GObjectClass.constructor
Use the newer constructed instead, which has a fast path in GObject.
Matthias Clasen [Thu, 26 Jun 2014 21:58:43 +0000 (17:58 -0400)]
Flip GTK_STOCK_CLEAR icon in rtl locales
Adwaita now includes an edit-clear-rtl variant, so lets use it.
Jasper St. Pierre [Thu, 26 Jun 2014 19:05:41 +0000 (15:05 -0400)]
gtkwindow: Remove a dumb invalidate_rect from our configure_event
We shouldn't invalidate the entire window when we receive a
ConfigureNotify. That's just broken.
Jasper St. Pierre [Thu, 26 Jun 2014 19:00:59 +0000 (15:00 -0400)]
gtkwindow: Remove a vestigal line of painting for OR windows
Since we have a paint clock, we shouldn't be sending out EXPOSE events
for OR windows inside the ALLOCATE cycle. The idea here was that we
would have to wait for a map to get an OR window to paint to, but since
then this has been abstracted away inside GDK and the paint clock.
Jasper St. Pierre [Thu, 26 Jun 2014 18:41:02 +0000 (14:41 -0400)]
gtkwindow: Remove an unnecessary set of grip setting
We already update the grip position in _gtk_window_set_allocation, which
is done through the size_allocate above. Receiving a ConfigureNotify
also won't ever change a grip's visibility, so there's no point in
refreshing it.
Jasper St. Pierre [Thu, 26 Jun 2014 18:17:56 +0000 (14:17 -0400)]
treeview: Remove configure-event handler as well
Jasper St. Pierre [Thu, 26 Jun 2014 18:16:26 +0000 (14:16 -0400)]
colorplane: Don't connect to the configure-event signal
We want to stop people from using configure events
entirely. GtkDrawingArea synthesizes a configure event, but we can just
make the only user of this functionality stop it, and correct the
documentation to not mention it.
Emmanuele Bassi [Thu, 26 Jun 2014 18:23:52 +0000 (19:23 +0100)]
docs: Show examples of how to use templates API
The template documentation is lacking inlined examples on how to use the
templates API, like binding children and callbacks. This makes looking
for best practices a bit harder than it ought to be, for a feature this
useful.
Jasper St. Pierre [Thu, 26 Jun 2014 14:30:29 +0000 (10:30 -0400)]
gtkwindow: Force CSD on Wayland
We rely on CSD here on the Wayland platform and giving the opportunity
to turn it off doesn't make too much sense.
Rico Tzschichholz [Thu, 26 Jun 2014 12:04:42 +0000 (14:04 +0200)]
icon-browser: Add iconbrowser.gresource.xml to EXTRA_DIST
Matthias Clasen [Wed, 25 Jun 2014 20:23:57 +0000 (16:23 -0400)]
Disable deprecation warnings in tests
We want to test deprecated properties, so failing the tests with
warnings is not productive.
Piotr Drąg [Wed, 25 Jun 2014 18:05:56 +0000 (20:05 +0200)]
Updated POTFILES.skip
Matthias Clasen [Wed, 25 Jun 2014 17:52:18 +0000 (13:52 -0400)]
icon-theme: Add another lookup order test
This tests rtl lookup order for non-symbolic icons.
Matthias Clasen [Wed, 25 Jun 2014 16:36:20 +0000 (12:36 -0400)]
icon-browser: drop icons that were removed from Adwaita
These non-standard icons were dropped from Adwaita. Eventually,
the icon-browser code should be changed to show all standard
icons + whatever is actually in the icon theme, instead of
hardcoding a list of non-standard names.
Carlos Garnacho [Tue, 24 Jun 2014 17:08:51 +0000 (19:08 +0200)]
gesture: Consume the event triggering ::begin if reset within the handler
If the event triggers GtkGesture::begin, and the handler ends up resetting
the gesture (say, due to taking a grab somewhere else within the handler),
still take the event as "managed", as it actually triggered recognition,
even if just to end abruptly.
https://bugzilla.gnome.org/show_bug.cgi?id=731711
Matthias Clasen [Wed, 25 Jun 2014 10:50:39 +0000 (06:50 -0400)]
icon-browser: fix a typo
Matthias Clasen [Wed, 25 Jun 2014 02:24:46 +0000 (22:24 -0400)]
icon browser: drop an misnamed icon
small-progress was just my local test icon for scaling of spinners.
Matthias Clasen [Tue, 24 Jun 2014 22:36:29 +0000 (18:36 -0400)]
Add an icon browser
This is meant to help app authors choose the right icons.
Richard Hughes [Tue, 24 Jun 2014 20:17:39 +0000 (21:17 +0100)]
Makefile: Actually dist the high-contrast and dark test files
Lapo Calamandrei [Tue, 24 Jun 2014 18:17:38 +0000 (20:17 +0200)]
Adwaita: add inconsistent hover check/radios
Matthias Clasen [Tue, 24 Jun 2014 17:30:33 +0000 (13:30 -0400)]
Another forgotten file
Matthias Clasen [Tue, 24 Jun 2014 17:23:29 +0000 (13:23 -0400)]
Forgotten file
Matthias Clasen [Tue, 24 Jun 2014 17:21:05 +0000 (13:21 -0400)]
GtkButton: Queue a redraw on enter/leave
We currently getting a redraw for buttons, but that is just luck.
Better to make it explicit.
Matthias Clasen [Tue, 24 Jun 2014 17:12:56 +0000 (13:12 -0400)]
Drop standalone pixbuf-demo
The same demo is included in gtk3-demo. One copy is enough.
Matthias Clasen [Tue, 24 Jun 2014 17:03:47 +0000 (13:03 -0400)]
GtkToggleButton: Queue a redraw on enter/leave
Without this, we don't redraw consistently for prelight state changes.
Matthias Clasen [Tue, 24 Jun 2014 15:45:57 +0000 (11:45 -0400)]
Bump version